using UnityEngine;
using System.Collections;

public class PELAAJAN_LIIKE : MonoBehaviour {

	public float nopeus = 10.0f;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	if (Input.GetKey ("left"))
			rigidbody.velocity= new Vector3(-nopeus, 0f, 0f);
		
	if (Input.GetKey ("right"))	
			rigidbody.velocity= new Vector3(nopeus, 0f, 0f);
		
	}
}
